home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / magnolia.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  2KB  |  74 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="magnolia"
  3.          version="$Id: magnolia.xml 13478 2007-07-19 19:45:26Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <strings>
  7.     <string name="domains" value="gnolia.com"/>
  8.   </strings>
  9.  
  10.   <sessioncookies>
  11.     <cookie host="ma.gnolia.com" name="_session_id" path="/"/>
  12.     <cookie host="ma.gnolia.com" name="a" path="/"/>
  13.     <cookie host="ma.gnolia.com" name="c" path="/"/>
  14.     <cookie host="ma.gnolia.com" name="d" path="/"/>
  15.     <cookie host=".ma.gnolia.com" name="__utma" path="/"/>
  16.     <cookie host=".ma.gnolia.com" name="__utmb" path="/"/>
  17.     <cookie host=".ma.gnolia.com" name="__utmc" path="/"/>
  18.     <cookie host=".ma.gnolia.com" name="__utmz" path="/"/>
  19.   </sessioncookies>
  20.  
  21.   <detect type="login">
  22.     <url domain="ma.gnolia.com"/>
  23.     <form>
  24.       <xpath name="username" extract="value">
  25.         <![CDATA[[@action="http://ma.gnolia.com/signin"]/p/input[@id="signin"]]]>
  26.       </xpath>
  27.       <xpath name="password" extract="value">
  28.         <![CDATA[/p/input[@id="password"]]]>
  29.       </xpath>
  30.     </form>
  31.   </detect>
  32.  
  33.   <detect type="signup">
  34.     <url domain="ma.gnolia.com"><path contains="/join"/></url>
  35.     <form>
  36.       <field tagname="input" fieldid="signup_user_screen_name" extractas="username"/>
  37.       <field tagname="input" fieldid="password_confirmation" type="password" extractas="password"/>
  38.     </form>
  39.   </detect>
  40.  
  41.   <detect type="changepassword">
  42.     <url domain="ma.gnolia.com"><path contains="/account/profile"/></url>
  43.     <document>
  44.       <regexp re1="username">
  45.         <![CDATA[/ma.gnolia.com\/people\/(.*)\/tags"/]]>
  46.       </regexp>
  47.     </document>
  48.     <form>
  49.       <xpath name="password" extract="value">
  50.         <![CDATA[//input[@id="password_confirm"][@type="password"]]]>
  51.       </xpath>
  52.     </form>
  53.   </detect>
  54.  
  55.   <detect type="loggedin">
  56.     <url domain="ma.gnolia.com"/>
  57.     <xpath>
  58.       <![CDATA[//div[@id="masthead"]//p/text()[contains(.,"Welcome")]]]></xpath>
  59.   </detect>
  60.  
  61.   <detect type="loggedout">
  62.     <url domain="ma.gnolia.com"/>
  63.     <xpath><![CDATA[//div[@id="masthead"]//p/a[@href="http://ma.gnolia.com/signin"]//text()[contains(.,"Sign In")]]]></xpath>
  64.   </detect>
  65.  
  66.   <detect type="accountinfo">
  67.     <url domain="ma.gnolia.com"/>
  68.     <regexp re1="accountid">
  69.       <![CDATA[/title="Edit\sYour\sProfile">(.+?)<\/a>/]]>
  70.     </regexp>
  71.   </detect>
  72.  
  73. </service>
  74.